package com.ruoyi.restaurant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.restaurant.mapper.SysCustomerMapper;
import com.ruoyi.restaurant.domain.SysCustomer;
import com.ruoyi.restaurant.service.ISysCustomerService;

/**
 * 顾客列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-15
 */
@Service
public class SysCustomerServiceImpl implements ISysCustomerService 
{
    @Autowired
    private SysCustomerMapper sysCustomerMapper;

    /**
     * 查询顾客列表
     * 
     * @param customerId 顾客列表主键
     * @return 顾客列表
     */
    @Override
    public SysCustomer selectSysCustomerByCustomerId(Integer customerId)
    {
        return sysCustomerMapper.selectSysCustomerByCustomerId(customerId);
    }

    /**
     * 查询顾客列表列表
     * 
     * @param sysCustomer 顾客列表
     * @return 顾客列表
     */
    @Override
    public List<SysCustomer> selectSysCustomerList(SysCustomer sysCustomer)
    {
        return sysCustomerMapper.selectSysCustomerList(sysCustomer);
    }

    /**
     * 新增顾客列表
     * 
     * @param sysCustomer 顾客列表
     * @return 结果
     */
    @Override
    public int insertSysCustomer(SysCustomer sysCustomer)
    {
        return sysCustomerMapper.insertSysCustomer(sysCustomer);
    }

    /**
     * 修改顾客列表
     * 
     * @param sysCustomer 顾客列表
     * @return 结果
     */
    @Override
    public int updateSysCustomer(SysCustomer sysCustomer)
    {
        return sysCustomerMapper.updateSysCustomer(sysCustomer);
    }

    /**
     * 批量删除顾客列表
     * 
     * @param customerIds 需要删除的顾客列表主键
     * @return 结果
     */
    @Override
    public int deleteSysCustomerByCustomerIds(Integer[] customerIds)
    {
        return sysCustomerMapper.deleteSysCustomerByCustomerIds(customerIds);
    }

    /**
     * 删除顾客列表信息
     * 
     * @param customerId 顾客列表主键
     * @return 结果
     */
    @Override
    public int deleteSysCustomerByCustomerId(Integer customerId)
    {
        return sysCustomerMapper.deleteSysCustomerByCustomerId(customerId);
    }
}
